


const { SqliteDB } = require('../../common/utils/sqliteUtil')
const { getSqliteDbPathByName } = require('../../common/utils/fileUtil')

exports.getClient = function () {
    const sqliteDB = new SqliteDB(getSqliteDbPathByName("sys"));
    return sqliteDB
}

exports.getClientByPluginId = function (pluginId) {
    const sqliteDB = new SqliteDB(getSqliteDbPathByName(pluginId));
    return sqliteDB
}
